import { defineStore } from "pinia";

const useBiliStore = defineStore("bili", {
  state: () => {
    return {
      roomId: "",
      code: "",
      gameId: "",
      wsInfo: {},
      thanksPlugin: {
        enabled: false,
        config: {
          giftRule: "感谢%name%投喂%gift-num%个%gift-name%",
          guardRule: "感谢%name%开通%guard-name%",
          welcomeRule: {
            ordinary: "欢迎%name%进入直播间",
            fans: "欢迎粉丝%name%进入直播间",
            guard: "欢迎老爷%name%进入直播间"
          }
        }
      },
      replyPlugin: {
        enabled: false,
        config: {
          keywords: [
            {
              _id: 0,
              key: "签到",
              value: "感谢%name%签到"
            }
          ],
          times: [
            {
              _id: 0,
              minute: 1,
              value: "关注主播不迷路"
            }
          ]
        }
      },
      songPlugin: {
        enabled: false,
        config: {
          songs: []
        }
      }
    };
  },
  getters: {},
  actions: {},
  persist: true
});
export default useBiliStore;
